# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'MainWindow.ui'
#
# Created: Mon Dec 19 19:08:32 2011
#      by: PyQt4 UI code generator 4.8.6
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

try:
    _fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
    _fromUtf8 = lambda s: s

class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(808, 620)
        MainWindow.setMinimumSize(QtCore.QSize(808, 620))
        MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "Event Searcher", None, QtGui.QApplication.UnicodeUTF8))
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.gridLayout = QtGui.QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.label = QtGui.QLabel(self.centralwidget)
        self.label.setText(QtGui.QApplication.translate("MainWindow", "Workspace:", None, QtGui.QApplication.UnicodeUTF8))
        self.label.setObjectName(_fromUtf8("label"))
        self.horizontalLayout.addWidget(self.label)
        self.workspaceBox = QtGui.QComboBox(self.centralwidget)
        self.workspaceBox.setMinimumSize(QtCore.QSize(250, 0))
        self.workspaceBox.setObjectName(_fromUtf8("workspaceBox"))
        self.horizontalLayout.addWidget(self.workspaceBox)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.settingsBtn = QtGui.QPushButton(self.centralwidget)
        self.settingsBtn.setText(QtGui.QApplication.translate("MainWindow", "Settings...", None, QtGui.QApplication.UnicodeUTF8))
        self.settingsBtn.setObjectName(_fromUtf8("settingsBtn"))
        self.horizontalLayout.addWidget(self.settingsBtn)
        self.gridLayout.addLayout(self.horizontalLayout, 0, 0, 1, 1)
        self.resultsView = QtGui.QTextBrowser(self.centralwidget)
        self.resultsView.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.resultsView.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
        self.resultsView.setTabChangesFocus(True)
        self.resultsView.setHtml(QtGui.QApplication.translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;\"></p></body></html>", None, QtGui.QApplication.UnicodeUTF8))
        self.resultsView.setTextInteractionFlags(QtCore.Qt.TextBrowserInteraction)
        self.resultsView.setObjectName(_fromUtf8("resultsView"))
        self.gridLayout.addWidget(self.resultsView, 3, 0, 1, 1)
        self.tabWidget = QtGui.QTabWidget(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.tabWidget.sizePolicy().hasHeightForWidth())
        self.tabWidget.setSizePolicy(sizePolicy)
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.nameTab = QtGui.QWidget()
        self.nameTab.setObjectName(_fromUtf8("nameTab"))
        self.gridLayout_2 = QtGui.QGridLayout(self.nameTab)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.searchNameEdit = QtGui.QLineEdit(self.nameTab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.searchNameEdit.sizePolicy().hasHeightForWidth())
        self.searchNameEdit.setSizePolicy(sizePolicy)
        self.searchNameEdit.setMinimumSize(QtCore.QSize(0, 0))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.searchNameEdit.setFont(font)
        self.searchNameEdit.setObjectName(_fromUtf8("searchNameEdit"))
        self.gridLayout_2.addWidget(self.searchNameEdit, 0, 0, 1, 1)
        self.searchSubNameCheck = QtGui.QCheckBox(self.nameTab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.searchSubNameCheck.sizePolicy().hasHeightForWidth())
        self.searchSubNameCheck.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.searchSubNameCheck.setFont(font)
        self.searchSubNameCheck.setFocusPolicy(QtCore.Qt.NoFocus)
        self.searchSubNameCheck.setText(QtGui.QApplication.translate("MainWindow", "Search in substrings", None, QtGui.QApplication.UnicodeUTF8))
        self.searchSubNameCheck.setObjectName(_fromUtf8("searchSubNameCheck"))
        self.gridLayout_2.addWidget(self.searchSubNameCheck, 0, 1, 1, 1)
        self.tabWidget.addTab(self.nameTab, _fromUtf8(""))
        self.propertyTab = QtGui.QWidget()
        self.propertyTab.setObjectName(_fromUtf8("propertyTab"))
        self.gridLayout_3 = QtGui.QGridLayout(self.propertyTab)
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.label_2 = QtGui.QLabel(self.propertyTab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_2.sizePolicy().hasHeightForWidth())
        self.label_2.setSizePolicy(sizePolicy)
        self.label_2.setText(QtGui.QApplication.translate("MainWindow", "Name:", None, QtGui.QApplication.UnicodeUTF8))
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout_3.addWidget(self.label_2, 0, 0, 1, 1)
        self.propertyBox = QtGui.QComboBox(self.propertyTab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.propertyBox.sizePolicy().hasHeightForWidth())
        self.propertyBox.setSizePolicy(sizePolicy)
        self.propertyBox.setMinimumSize(QtCore.QSize(250, 0))
        self.propertyBox.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.propertyBox.setObjectName(_fromUtf8("propertyBox"))
        self.gridLayout_3.addWidget(self.propertyBox, 0, 1, 1, 3)
        self.label_3 = QtGui.QLabel(self.propertyTab)
        self.label_3.setText(QtGui.QApplication.translate("MainWindow", "Value:", None, QtGui.QApplication.UnicodeUTF8))
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.gridLayout_3.addWidget(self.label_3, 1, 0, 1, 1)
        self.rangeFromValue = QtGui.QDoubleSpinBox(self.propertyTab)
        self.rangeFromValue.setMinimumSize(QtCore.QSize(100, 0))
        self.rangeFromValue.setMaximumSize(QtCore.QSize(100, 16777215))
        self.rangeFromValue.setMinimum(-100.0)
        self.rangeFromValue.setMaximum(10000.0)
        self.rangeFromValue.setSingleStep(0.1)
        self.rangeFromValue.setObjectName(_fromUtf8("rangeFromValue"))
        self.gridLayout_3.addWidget(self.rangeFromValue, 1, 1, 1, 1)
        self.enableRangeCheck = QtGui.QCheckBox(self.propertyTab)
        self.enableRangeCheck.setMinimumSize(QtCore.QSize(50, 0))
        self.enableRangeCheck.setText(QtGui.QApplication.translate("MainWindow", "To:", None, QtGui.QApplication.UnicodeUTF8))
        self.enableRangeCheck.setChecked(True)
        self.enableRangeCheck.setObjectName(_fromUtf8("enableRangeCheck"))
        self.gridLayout_3.addWidget(self.enableRangeCheck, 1, 2, 1, 1)
        self.rangeToValue = QtGui.QDoubleSpinBox(self.propertyTab)
        self.rangeToValue.setMinimumSize(QtCore.QSize(100, 0))
        self.rangeToValue.setMaximumSize(QtCore.QSize(100, 16777215))
        self.rangeToValue.setMinimum(-100.0)
        self.rangeToValue.setMaximum(10000.0)
        self.rangeToValue.setSingleStep(0.1)
        self.rangeToValue.setObjectName(_fromUtf8("rangeToValue"))
        self.gridLayout_3.addWidget(self.rangeToValue, 1, 3, 1, 1)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.gridLayout_3.addItem(spacerItem1, 1, 4, 1, 1)
        self.tabWidget.addTab(self.propertyTab, _fromUtf8(""))
        self.customTab = QtGui.QWidget()
        self.customTab.setObjectName(_fromUtf8("customTab"))
        self.gridLayout_4 = QtGui.QGridLayout(self.customTab)
        self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4"))
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.addQueryBtn = QtGui.QPushButton(self.customTab)
        self.addQueryBtn.setText(QtGui.QApplication.translate("MainWindow", "Add...", None, QtGui.QApplication.UnicodeUTF8))
        self.addQueryBtn.setObjectName(_fromUtf8("addQueryBtn"))
        self.verticalLayout.addWidget(self.addQueryBtn)
        self.removeQueryBtn = QtGui.QPushButton(self.customTab)
        self.removeQueryBtn.setText(QtGui.QApplication.translate("MainWindow", "Clear", None, QtGui.QApplication.UnicodeUTF8))
        self.removeQueryBtn.setObjectName(_fromUtf8("removeQueryBtn"))
        self.verticalLayout.addWidget(self.removeQueryBtn)
        spacerItem2 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem2)
        self.gridLayout_4.addLayout(self.verticalLayout, 0, 1, 1, 1)
        self.customAreaWidget = QtGui.QFrame(self.customTab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.customAreaWidget.sizePolicy().hasHeightForWidth())
        self.customAreaWidget.setSizePolicy(sizePolicy)
        self.customAreaWidget.setFrameShape(QtGui.QFrame.Panel)
        self.customAreaWidget.setFrameShadow(QtGui.QFrame.Sunken)
        self.customAreaWidget.setObjectName(_fromUtf8("customAreaWidget"))
        self.gridLayout_4.addWidget(self.customAreaWidget, 0, 0, 1, 1)
        self.tabWidget.addTab(self.customTab, _fromUtf8(""))
        self.gridLayout.addWidget(self.tabWidget, 2, 0, 1, 1)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 808, 22))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        MainWindow.setMenuBar(self.menubar)
        self.statusBar = QtGui.QStatusBar(MainWindow)
        self.statusBar.setObjectName(_fromUtf8("statusBar"))
        MainWindow.setStatusBar(self.statusBar)

        self.retranslateUi(MainWindow)
        self.tabWidget.setCurrentIndex(0)
        QtCore.QObject.connect(self.tabWidget, QtCore.SIGNAL(_fromUtf8("currentChanged(int)")), MainWindow.onCurrentTabChanged)
        QtCore.QObject.connect(self.enableRangeCheck, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.rangeToValue.setEnabled)
        QtCore.QObject.connect(self.settingsBtn, QtCore.SIGNAL(_fromUtf8("clicked()")), MainWindow.onSettingsClicked)
        QtCore.QObject.connect(self.resultsView, QtCore.SIGNAL(_fromUtf8("customContextMenuRequested(QPoint)")), MainWindow.onResultsContextMenu)
        QtCore.QObject.connect(self.addQueryBtn, QtCore.SIGNAL(_fromUtf8("clicked()")), MainWindow.onAddQuery)
        QtCore.QObject.connect(self.removeQueryBtn, QtCore.SIGNAL(_fromUtf8("clicked()")), MainWindow.onRemoveQuery)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
        MainWindow.setTabOrder(self.rangeFromValue, self.rangeToValue)
        MainWindow.setTabOrder(self.rangeToValue, self.enableRangeCheck)
        MainWindow.setTabOrder(self.enableRangeCheck, self.propertyBox)
        MainWindow.setTabOrder(self.propertyBox, self.resultsView)
        MainWindow.setTabOrder(self.resultsView, self.tabWidget)
        MainWindow.setTabOrder(self.tabWidget, self.workspaceBox)
        MainWindow.setTabOrder(self.workspaceBox, self.searchNameEdit)

    def retranslateUi(self, MainWindow):
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.nameTab), QtGui.QApplication.translate("MainWindow", "Name", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.propertyTab), QtGui.QApplication.translate("MainWindow", "Property", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.customTab), QtGui.QApplication.translate("MainWindow", "Custom", None, QtGui.QApplication.UnicodeUTF8))


if __name__ == "__main__":
    import sys
    app = QtGui.QApplication(sys.argv)
    MainWindow = QtGui.QMainWindow()
    ui = Ui_MainWindow()
    ui.setupUi(MainWindow)
    MainWindow.show()
    sys.exit(app.exec_())

